package com.ruoyi.petition.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 法制讲堂对象 legal_classroom
 *
 * @author ZWX
 * @date 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("legal_classroom")
public class LegalClassroom extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 视频URL
     */
    @Excel(name = "视频URL")
    private String videoUrl;

    /**
     * 简介
     */
    @Excel(name = "简介")
    private String description;

    /**
     * 封面
     */
    @Excel(name = "封面")
    private String coverImg;

    /**
     * 时长
     */
    @Excel(name = "时长")
    private Long videoTime;

    /**
     * 大小
     */
    @Excel(name = "大小")
    private Long videoSize;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("videoUrl", getVideoUrl())
                .append("description", getDescription())
                .append("coverImg", getCoverImg())
                .append("videoTime", getVideoTime())
                .append("videoSize", getVideoSize())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
